import { createRouter, createWebHashHistory } from 'vue-router'

import Login from '../components/Login.vue'
// import Home from '../components/Home.vue'

const routes = [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/home',
      name: 'Home',
      component:  ()=>import('../components/Home.vue'),
      children:[{
        path: '/home/tese/kexin',
        name: 'Kexin',
        component: ()=>import('../components/tese/Kexin.vue')
      },{
        path: '/home/tese/yuqing',
        name: 'Yuqing',
        component: ()=>import('../components/tese/Yuqing.vue')
      },{
        path: '/home/tese/lawsuitAll',
        name: 'lawsuitAll',
        component: ()=>import('../components/tese/lawsuitAll.vue')
      },{
        path: '/home/tese/lawsuitClassical',
        name: 'lawsuitClassical',
        component: ()=>import('../components/tese/lawsuitClassical.vue')
      },{
        path: '/home/tese/lawsuitAllV2',
        name: 'lawsuitAllV2',
        component: ()=>import('../components/tese/lawsuitAllV2.vue')
      },{
        path: '/home/tese/lawsuitAllType',
        name: 'lawsuitAllType',
        component: ()=>import('../components/tese/lawsuitAllType.vue')
      },{
        path: '/home/tese/idCheck',
        name: 'idCheck',
        component: ()=>import('../components/tese/idCheck.vue')
      },{
        path: '/home/tese/operate3Element',
        name: 'operate3Element',
        component: ()=>import('../components/tese/operate3Element.vue')
      },{
        path: '/home/tese/operateOnline',
        name: 'operateOnline',
        component: ()=>import('../components/tese/operateOnline.vue')
      },{
        path: '/home/tese/lawsuitAll',
        name: 'lawsuitAll',
        component: ()=>import('../components/tese/lawsuitAll.vue')
      },{
        path: '/home/tese/unionPay4element',
        name: 'unionPay4element',
        component: ()=>import('../components/tese/unionPay4element.vue')
      },{
        path: '/home/tese/creditInfo',
        name: 'creditInfo',
        component: ()=>import('../components/tese/creditInfo.vue')
      },{
        path: '/home/tese/chassisLicensePlate',
        name: 'chassisLicensePlate',
        component: ()=>import('../components/tese/chassisLicensePlate.vue')
      },{
        path: '/home/realestate/realestate1-1',
        name: 'realestate1-1',
        component: ()=>import('../components/realestate/realestate1-1.vue')
      },{
        path: '/home/realestate/realestate1-2',
        name: 'realestate1-2',
        component: ()=>import('../components/realestate/realestate1-2.vue')
      },{
        path: '/home/realestate/realestate1-3',
        name: 'realestate1-3',
        component: ()=>import('../components/realestate/realestate1-3.vue')
      },{
        path: '/home/realestate/realestate2-1',
        name: 'realestate2-1',
        component: ()=>import('../components/realestate/realestate2-1.vue')
      },{
        path: '/home/realestate/realestate3-1',
        name: 'realestate3-1',
        component: ()=>import('../components/realestate/realestate3-1.vue')
      },{
        path: '/home/realestate/realestate3-2',
        name: 'realestate3-2',
        component: ()=>import('../components/realestate/realestate3-2.vue')
      },{
        path: '/home/realestate/realestate3-3',
        name: 'realestate3-3',
        component: ()=>import('../components/realestate/realestate3-3.vue')
      },{
        path: '/home/realestate/realestate3-4',
        name: 'realestate3-4',
        component: ()=>import('../components/realestate/realestate3-4.vue')
      },{
        path: '/home/realestate/realestate3-5',
        name: 'realestate3-5',
        component: ()=>import('../components/realestate/realestate3-5.vue')
      },{
        path: '/home/realestate/realestate3-6',
        name: 'realestate3-6',
        component: ()=>import('../components/realestate/realestate3-6.vue')
      },{
        path: '/home/realestate/realestate3-7',
        name: 'realestate3-7',
        component: ()=>import('../components/realestate/realestate3-7.vue')
      },{
        path: '/home/realestate/realestate3-8',
        name: 'realestate3-8',
        component: ()=>import('../components/realestate/realestate3-8.vue')
      },{
        path: '/home/realestate/realestate3-9',
        name: 'realestate3-9',
        component: ()=>import('../components/realestate/realestate3-9.vue')
      },{
        path: '/home/realestate/realestate4-1',
        name: 'realestate4-1',
        component: ()=>import('../components/realestate/realestate4-1.vue')
      },{
        path: '/home/realestate/realestate4-2',
        name: 'realestate4-2',
        component: ()=>import('../components/realestate/realestate4-2.vue')
      }]
    },
    
  ]
  const routerBase = createRouter({
    history: createWebHashHistory(),
    routes,
  })

  export default routerBase
